package com.terren.excavator.entity;

/**
 * 树节点类
 * 
 * @author Administrator
 * 
 */
public class TreeNode {
	private String id;
	private String text;
	private String state;//closed or open
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getState() {
		return state;
	}
	
	/**
	 * 有子节点时， true 没有时 false
	 * @param hashChild
	 */
	public void setState(boolean hashChild) {
		if(hashChild){
			this.state = "closed";
		}else{
			this.state = "open";
		}
	}
}
